home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmZIP
- BorderStyle = 3 'Fixed Dialog
- Caption = "mcZIP Sample Application"
- ClientHeight = 3420
- ClientLeft = 2010
- ClientTop = 2160
- ClientWidth = 6195
- Height = 3825
- Icon = "frmZIP.frx":0000
- Left = 1950
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3420
- ScaleWidth = 6195
- Top = 1815
- WhatsThisButton = -1 'True
- WhatsThisHelp = -1 'True
- Width = 6315
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 45
- TabIndex = 2
- Top = 2655
- Width = 2535
- End
- Begin VB.DirListBox Dir1
- Height = 2505
- Left = 45
- TabIndex = 0
- Top = 45
- Width = 2535
- End
- Begin VB.ListBox List1
- Height = 2985
- Left = 2655
- TabIndex = 3
- Top = 45
- Width = 3480
- Visible = 0 'False
- End
- Begin VB.FileListBox File1
- Height = 2985
- Left = 2655
- Pattern = "*.zip;*.arj;*.lzh;*.lha"
- TabIndex = 1
- Top = 45
- Width = 3480
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Double-click a compressed file (ZIP-, ARJ-, LZH- or LHA-format) to view its contents."
- Height = 195
- Left = 90
- TabIndex = 4
- Top = 3150
- Width = 5955
- End
- Begin VB.Line Line4
- BorderColor = &H80000011&
- X1 = 45
- X2 = 45
- Y1 = 3105
- Y2 = 3375
- End
- Begin VB.Line Line3
- BorderColor = &H80000014&
- X1 = 6120
- X2 = 6120
- Y1 = 3120
- Y2 = 3390
- End
- Begin VB.Line Line2
- BorderColor = &H80000011&
- X1 = 45
- X2 = 6120
- Y1 = 3105
- Y2 = 3105
- End
- Begin VB.Line Line1
- BorderColor = &H80000014&
- X1 = 45
- X2 = 6120
- Y1 = 3375
- Y2 = 3375
- End
- Attribute VB_Name = "frmZIP"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Dir1_Change()
- If List1.Visible Then
- List1.Visible = False
- Label1.Caption = "Double-click a compressed file (ZIP-, ARJ-, LZH- or LHA-format) to view its contents."
- End If
- File1.Path = Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- ' yes I know.. no error handling =)
- Dir1.Path = CurDir(Drive1.Drive)
- End Sub
- Private Sub File1_DblClick()
- Select Case UCase$(Right$(File1.Filename, 3))
- Case "ZIP"
- List1.Clear
- List1.Visible = True
- AddZIPfiles Dir1.Path & "\" & File1.Filename, List1
-
- Label1.Caption = UCase$(File1.Filename) & " is compressed with PKZip (" & Format$(List1.ListCount) & " files in this archive)."
- Case "ARJ"
- List1.Clear
- List1.Visible = True
- AddARJfiles Dir1.Path & "\" & File1.Filename, List1
-
- Label1.Caption = UCase$(File1.Filename) & " is compressed with ARJ (" & Format$(List1.ListCount) & " files in this archive)."
- Case "LZH", "LHA"
- List1.Clear
- List1.Visible = True
- AddLZHfiles Dir1.Path & "\" & File1.Filename, List1
- Label1.Caption = UCase$(File1.Filename) & " is compressed with LZH/LHA (" & Format$(List1.ListCount) & " files in this archive)."
- End Select
- End Sub
-